package com.lagou.user.service.impl;

import com.lagou.user.entity.UserInfo;
import com.lagou.user.mapper.UserInfoMapper;
import com.lagou.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserInfoMapper userMapper;

    @Override
    public Integer register(String email, String password) {
        return userMapper.registerUser(email,password);
    }

    @Override
    public UserInfo getUserInfoByEmail(String email) {
        return userMapper.getUserByEmail(email);
    }
}
